﻿using Microsoft.Xna.Framework;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Microsoft.Xna.Framework.Content;
using System;

namespace ShevaEngine.Core.Modules.Animations
{
    /// <summary>
    /// Represents a keyframe in an animation track.
    /// </summary>
    [ContentSerializerRuntimeTypeAttribute("ShevaEngine.Core.Modules.Animations.BoneKeyframe, ShevaEngine2")]
    public class BoneKeyframe
    {
        /// <summary>The transform for the keyframe.</summary>
        public Matrix Transform { get; set; }
        /// <summary>The time for the keyframe.</summary>
        public long Time { get; set; }

        /// <summary>
        /// Konstruktor pro content pipeline.
        /// </summary>
        public BoneKeyframe()
        {

        }

        /// <summary>
        /// Creats a new BoneKeyframe.
        /// </summary>
        /// <param name="time">The time in ticks for the keyframe.</param>
        /// <param name="transform">The transform for the keyframe.</param>        
        public BoneKeyframe(Matrix transform, long time)
        {
            this.Transform = transform;
            this.Time = time;
        }
    }    
}
